package com.kaiwukj.android.ufamily.mvp.http.entity.result;

import com.kaiwukj.android.ufamily.mvp.http.entity.base.BaseBean;

import java.util.List;

public class KeeperResult extends BaseBean {
    private String headImg;
    private Integer housekeeperId;
    private String hxName;
    private String name;
    private String phone;
    private Integer gender;//1g2m
    private Integer age;
    private List<KeeperService> services;

    public String getHeadImg() {
        return headImg;
    }

    public void setHeadImg(String headImg) {
        this.headImg = headImg;
    }

    public Integer getHousekeeperId() {
        return housekeeperId == null ? -1 : housekeeperId;
    }

    public void setHousekeeperId(Integer housekeeperId) {
        this.housekeeperId = housekeeperId;
    }

    public String getHxName() {
        return hxName;
    }

    public void setHxName(String hxName) {
        this.hxName = hxName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getGender() {
        return gender == null ? 2 : gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public boolean isBoy() {
        return getGender() == 1;
    }

    public Integer getAge() {
        return age == null ? 24 : age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public List<KeeperService> getServices() {
        return services;
    }

    public void setServices(List<KeeperService> services) {
        this.services = services;
    }

    public static class KeeperService extends BaseBean {
        private Integer freeServiceSurplusNum;
        private Integer id;
        private Integer payServiceSurplusNum;
        private String serviceIcon;
        private String serviceName;
        private String serviceTimeStart;
        private String serviceTimeStop;

        public Integer getFreeServiceSurplusNum() {
            return freeServiceSurplusNum;
        }

        public void setFreeServiceSurplusNum(Integer freeServiceSurplusNum) {
            this.freeServiceSurplusNum = freeServiceSurplusNum;
        }

        public Integer getId() {
            return id;
        }

        public void setId(Integer id) {
            this.id = id;
        }

        public Integer getPayServiceSurplusNum() {
            return payServiceSurplusNum;
        }

        public void setPayServiceSurplusNum(Integer payServiceSurplusNum) {
            this.payServiceSurplusNum = payServiceSurplusNum;
        }

        public String getServiceIcon() {
            return serviceIcon;
        }

        public void setServiceIcon(String serviceIcon) {
            this.serviceIcon = serviceIcon;
        }

        public String getServiceName() {
            return serviceName;
        }

        public void setServiceName(String serviceName) {
            this.serviceName = serviceName;
        }

        public String getServiceTimeStart() {
            return serviceTimeStart;
        }

        public void setServiceTimeStart(String serviceTimeStart) {
            this.serviceTimeStart = serviceTimeStart;
        }

        public String getServiceTimeStop() {
            return serviceTimeStop;
        }

        public void setServiceTimeStop(String serviceTimeStop) {
            this.serviceTimeStop = serviceTimeStop;
        }
    }
}
